package forward.Module.Modules.Render;

import forward.api.EventHandler;
import forward.api.Events.World.EventPreUpdate;
import forward.api.Value.Mode;
import forward.api.Value.Numbers;
import forward.api.Value.Option;
import forward.api.Value.Value;
import forward.Module.Module;
import forward.Module.ModuleType;

public class Animations extends Module {
    public static Mode<Enum> mode = new Mode("Mode", "mode", (Enum[]) renderMode.values(), renderMode.Sigma);
    public static Option<Boolean> smooth = new Option("Smooth", "Smooth", Boolean.valueOf(false));
    //Manager.put(new Setting("SWING_SLOW", "Slowdown", SLIDER, this, slowdown, 1));
    public static Numbers<Double> slowdown = new Numbers<Double>("swingspeed", "swingspeed", 0.0, -5.0, 10.0, 1.0);
    public Animations() {
        super("Animations", new String[]{"BlockHitanimations"}, ModuleType.Render);
        addValues(mode,smooth,slowdown);
    }

    @EventHandler
    public void OnUpdate(EventPreUpdate event) {
        this.setSuffix((Object) (this.mode.getValue()));
    }

    public enum renderMode {
        Sigma, old,Exhibition, Vanilla, Luna, Jigsaw, Swang, Swank, Swong,Swing,Smooth;
    }
}
